#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void main() {
	char c;
	scanf("%c", &c);
	int a = (int)c;
	printf("%d", a);
}